# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blackmate
pkgver=49.6e5f2d3
pkgrel=1
pkgdesc='BlackArch specific Xfce4 WM.'
arch=('any')
url='https://github.com/Anyon3/blackmate'
license=('GPL')
depends=('xdg-utils' 'blackarch-config-gtk' 'xfce4-terminal' 'xfce4-session'
         'blackarch-menus' 'sudo' 'wget')
makedepends=('git')
source=("git+https://github.com/Anyon3/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/bin"
  install -dm 755 "$pkgdir/usr/share/$pkgname"

  cp -a * "$pkgdir/usr/share/$pkgname/"

  chmod +x "$pkgdir/usr/share/$pkgname/$pkgname.sh"

  ln -sf "/usr/share/$pkgname/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}

